<?php 
$url = $this->baseUrl();
$storage = new Zend_Auth_Storage_Session();
$data = $storage->read();

?>


<?php foreach( $this->listcomment as $key => $item):?>
					
	<?php $user = $this->auth->getItemByComment($item["userid"]);?>

	<li class="comment">
	
		<div class="clearfix">
		
			<div class="avatar">
			
				<?php if(isset($user["avatar"])):?>

					<img alt="noavatar" width="64" height="64" src="<?php echo $url;?>/upload/<?php echo $user["avatar"];?>">
					
				<?php else :?>
					<img alt="noavatar" width="64" height="64" src="<?php echo $url;?>/upload/noavatar.gif">
				<?php endif;?>			
				<span class="overlay"></span>									
			</div>
			
			<div class="comment-wrap">
			
			<div class="comment-author vcard">
				
				<h4><?php echo $user["displayname"];?></h4>
				
			</div>
			
			<div class="comment-content">
			<p><?php echo $item["content"]?></p>
			</div>
			
			</div>
			
		</div>
	
	</li>
	
<?php endforeach;?>